/**
 * 
 * 游戏牌局的管理者     var foo=(x)=>x+1 等价于 var foo=function(x){return x+1}
 */

import { GameDB } from './GameDB';
import { GameView } from './gameView/GameView';

//import  Poker  from './Poker';//这个3.x的是  类前面+ default  应用+｛｝ 

const { ccclass, property } = cc._decorator;

@ccclass
export class GameCtrl extends  cc.Component
{
     private m_GameView:GameView=null;
    private m_GameDB:GameDB=null;

    public Init(gameview:GameView)
    {  
        this.m_GameDB=GameDB.Create();
        this.m_GameView=gameview;
        this.m_GameView.InitPokers(this.m_GameDB.pokers);
    }

    public start()
    {
   
    }
}
 